Deliver First-class Websites by Shirley Kaiser

Deliver First-class Websites by Shirley Kaiser

Author:Shirley Kaiser
Language: eng
Format: mobi, epub, pdf
Publisher: SitePoint Pty. Ltd.


Using Appropriate CSS Naming Conventions

Use the id attribute for core structural components.

Structural components include, for example, your site’s header, navigation, content, sidebar, footer, and search.

Assign helpful, descriptive names to describe the function or purpose of each CSS class and id.

For example, don’t use ambiguous names like red or dave-likes-this. Maybe you’re using the color red in this iteration of the site—and perhaps Dave does indeed like it—but what will happen later, when you decide to use green, Dave’s most loathed color? Be sure to use a name that describes the purpose or function of the item, such as localnav or footer.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.